﻿<ion-view view-title="供应商详情" class="distributor_sxqd_detail">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>

	<ion-content class="bg">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		<div class="list">
			<div class="item shopframe margin-bottom-10">
				<div class="item-input padding-0">
					<span class="fonttext width64">供应商</span>
					<span class="fonttext padding-left-30">{{list.store_name}}</span>
				</div>
				<div class="item-input padding-0 margin-top-5">
					<span class="fonttext">授信额度</span>
					<span class="fonttext padding-left-30">{{list.credit_line}}元</span>
				</div>
			</div>
			<div class="margin-bottom-10" ng-repeat="brand in list.brands">
				<div class="item item-input brandframe margin-bottom-1" on-tap="is_showbrand($index)">
					<span class="fonttext width64">品牌</span>
					<span class="fonttext padding-left-30">{{brand.brand_name}}</span>
					<img src="{{brand.is_show?'./img/guilin/common/icon_up@2x.png':'./img/guilin/common/icon_down@2x.png'}}"/>
				</div>
				<div ng-if="brand.is_show">
					<div class="item item-input brandframe margin-bottom-1" ng-repeat="cat_type in brand.cat_type">
						<div class="fonttext width64">
							<span ng-if="$index==0">产品分类</span>
						</div>
						<span class="fonttext padding-left-30 hidtext padding-right-10">{{cat_type.name}}</span>
					</div>
					<div class="item item-input brandframe margin-bottom-1" ng-repeat="region in brand.region">
						<div class="fonttext width64">
							<span ng-if="$index==0">地域</span>
						</div>
						<span class="fonttext padding-left-30 hidtext padding-right-10">{{region.name}}</span>
					</div>
					<div class="item item-input brandframe">
						<span class="fonttext width64">能否改价</span>
						<span class="fonttext padding-left-30">{{brand.change_price}}</span>
					</div>
				</div>
			</div>
		</div>
	</ion-content>
</ion-view>